home *** CD-ROM | disk | FTP | other *** search
- @rem = '
- @rem Sets up the command line debugger for the duration of
- @rem this shell session.
- @rem
- @rem Michael Smith - ⌐1998 ActiveState Tool Corp.
- @rem
- @echo off
- echo.
- echo Modifying PERL5DB environment variable
- echo to use command line debugger for this
- echo shell session only.
- echo.
- perl cmddb.bat
- echo.
- goto setit
- @rem = ';
-
- begin:
-
- $foundit = 0;
- for(@INC)
- {
- if (-e "$_\\perl5db.pl")
- {
- $foundit = 1;
- print "Found file: $_\\perl5db.pl\n";
- open(FILE, ">SETIT.BAT") || die "Couldn't open file: setit.bat";
- print FILE "SET PERL5DB=BEGIN{require '$_\\perl5db.pl'}";
- close FILE;
- next;
- }
- }
-
- if(!$foundit)
- {
- print "Could not find 'perl5db.pl'\n\n";
- }
-
- __END__
- :setit
- call SETIT.BAT
- DEL SETIT.BAT
-